/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package boundless.managedbeans;

import java.util.List;
import javax.inject.Named;
import javax.enterprise.context.Dependent;

import boundless.entities.*;
import javax.inject.Inject;
/**
 *  Allows a user to view their messages
 * @author hendrikdekock
 */
@Named(value = "messagesBean")
@Dependent
public class MessagesBean {

    /**
     * The messages for a particular Account
     */
    List<Messages> myMessages;
    
    /**
     * The account reading the messages
     */
    @Inject
    Account curAccount;
    
    /**
     * A message currently being displayed
     */
    Messages curMessage;
    /**
     * Creates a new instance of MessagesBean
     */
    public MessagesBean() {
    }
    
/**
 * Updates the message list for the current user;
 */
    public void viewMessages() {
        
    }
    
    /**
     * Updates the particular message being viewed
     * @param mid : The id of that message
     */
    public void viewMessage(int mid) {
        
    }
    
    /**
     * Sends another user a message
     * @param content : The content of the message
     * @param a : The account
     */
    public void sendMessage(String content, Account a) {
        
    }
}
